<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/27 0027
 * Time: 20:26
 */


use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\ActiveForm;
use yii\helpers\Url;
use backend\assets\AppAsset;
?>

<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <!--//提示ie使用最新的内核-->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <!--//视口快捷键:meta:vp+tap键 (可视区宽度为当前屏幕宽度,自适应手机宽度,禁止手机缩放,禁止用户放大或缩小到实际尺寸之上)-->
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0,user-scalable=no,maximum-scale=1.0,minimum-scale=1.0"/>
    <meta name='author' content="wang"/>
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>尽调评估</title>



    <?php
    $this->registerCssFile('@web/css/base.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);
    $this->registerCssFile('@web/css/header-footer.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);
    $this->registerCssFile('@web/css/paging.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);
    $this->registerCssFile('@web/css/select2.min.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);
    $this->registerCssFile('@web/css/projectInvestigation/assessment.css', ['depends' => ['backend\assets\AppAsset'], 'position' => $this::POS_HEAD]);

    AppAsset::addScript($this, '@web/js/paging.js');
    AppAsset::addScript($this, '@web/js/select2.min.js');
    AppAsset::addScript($this, '@web/js/projectInvestigation/assessment.js');
    AppAsset::addScript($this, '@web/js/projectInvestigation/investigation.js');
    ?>

    <!--<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/lib/jquery.js"></script>
    <script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
    <script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/localization/messages_zh.js"></script>-->

    <!--当遇到IE9以下的版本的使用会执行下面注释的代码  (HThtml5shiv.min.js和respond.js IE8支持HTML5元素和媒体查	询,respond.min.js在只能在服务器上运行,在本地不会运行-->
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>

<?php $form = ActiveForm::begin([
    'id' => 'zhai-quan',
   /* 'action' => ['project-investigation/save-investigation'],
    'method' => 'post',*/
    'options' => [
        'class' => "zhaiQuanEdit zhaiQuan",
        'style' => 'display: block;',
        'enctype' => 'multipart/form-data'
    ],
    'enableAjaxValidation' => true, // 开启ajax验证
    'enableClientValidation' => true,
    'validationUrl' => Url::toRoute(['validate-investigation']),
//                'fieldConfig' => [
//                    'template' => "{label}\n<div class=\"col-md-8\">{input}</div>\n<div class=\"row\"><div class=\"col-md-4\"></div><div class=\"col-md-8\">{error}</div></div>",
//                    'labelOptions' => ['class' => 'col-md-4 control-label'],
//                ],
]); ?>

<!--<form action="" id="zhai-quan" class="zhaiQuanEdit zhaiQuan" style="display: none;">-->
<table class="table4" border="1" cellspacing="0" cellpadding="0">
    <tr>
        <td>借款人名称</td>
        <td>
            <!--<input autofocus type="text"/>-->
            <!--<input type="text" id="projectinvestigation-borrower" name="ProjectInvestigation[borrower]" maxlength="255" placeholder="请输入借款人名称" autofocus="autofocus" aria-required="true" aria-invalid="true">-->

            <?php echo $form->field($model, 'borrower', [
                    'inputOptions' => ['placeholder' => '请输入借款人名称', 'autofocus' => 'autofocus'],
                    /*'template' => "{input}\n{error}",*/
                ]
            )->textInput(['maxlength' => 255]); ?>

            <?php /*echo  $form->field($model, 'img_path',[
                'template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-2\"><label for=\"uploadImg\" class=\"btn btn-default forfocus1\" onclick=\"changeImg(1,'forfocus');\">选择图片<img src=\"\"></label></div>\n{error}",
                'labelOptions' => ['class' => 'col-lg-2 control-label'],
            ])->textInput(['maxlength' => 255,'placeholder'=>'专题图片','readonly'=>true])->label('专题名称')->hint('错误提示信息') */?>

        </td>
        <td>保证人名称</td>
        <td>
            <input type="text"/>
        </td>
    </tr>
    <tr>
        <td>抵押人名称</td>
        <td>
            <input type="text"/>
        </td>
        <td>抵押物类型</td>
        <td style="width: 424px!important;">
            <select type='select' name="" class="select" id="select1" multiple="multiple">
        </td>
    </tr>
    <tr>
        <td>本 金</td>
        <td class="yz">
            <input type="text" isNumber='true' onkeyup='true'/>
        </td>
        <td>利 息</td>
        <td class="yz">
            <input type="text" isNumber='true' onkeyup='true' isNumber='true'/>
        </td>
    </tr>
</table>
<div class="cancelInConfirm clearfix">
    <input id="confirm" class="cancelInConfirmActive" type="submit" value="保存"/>
 <!--   <input id="confirm" class="cancelInConfirmActive" type="button" value="保存"/>-->
    <input id='cancel' type="button" value="取消"/>
</div>
<!--</form>-->
<?php ActiveForm::end(); ?>

</body>
</html>